public class Point2D {
    private double x,y;
	
    public Point2D(double x, double y) {
	this.x = x;
	this.y = y;
    }
	
    public double getX() { return x;}
    
    public double getY() { return y;}

	public void setX(double modx) { x=modx;}
    
    public void setY(double mody) { y=mody;}
	
	public double distanceTo(Point2D b){
		double distance = Math.sqrt((Math.abs(x-b.x)*Math.abs(x-b.x))+
		(Math.abs(y-b.y)*Math.abs(y-b.y)));
		return distance;
	}
	
}
